package com.njit.farm.dao;

import com.njit.farm.dataobject.FOrder;
import com.njit.farm.model.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FOrderMapper {
    int deleteByPrimaryKey(String oId);

    int insert(FOrder record);

    FOrder selectByPrimaryKey(String oId);

    List<Order> selectOrdersByUserId(String uId);

    List<FOrder> selectByUserId(String uId);

    List<FOrder> selectAll();

    int updateByPrimaryKey(FOrder record);

    int updateTotal(String oId);
}